/**
 * 
 */
package com.ncr.travel.appmgr.model;

import com.ncr.travel.appmgr.model.shared.FunctionControls;

/**
 * @author mm185255
 *
 */
public class FunctionControlsJson implements FunctionControls {

	private Boolean isRadioEnabled;
	private Boolean isSelectEnabled;

	public FunctionControlsJson() {
	}

	/* (non-Javadoc)
	 * @see com.ncr.travel.appmgr.model.FunctionControls#getIsRadioEnabled()
	 */
	@Override
	public Boolean getIsRadioEnabled() {
		return isRadioEnabled;
	}

	/* (non-Javadoc)
	 * @see com.ncr.travel.appmgr.model.FunctionControls#setIsRadioEnabled(java.lang.Boolean)
	 */
	@Override
	public void setIsRadioEnabled(Boolean isRadioEnabled) {
		this.isRadioEnabled = isRadioEnabled;
	}

	/* (non-Javadoc)
	 * @see com.ncr.travel.appmgr.model.FunctionControls#getIsSelectEnabled()
	 */
	@Override
	public Boolean getIsSelectEnabled() {
		return isSelectEnabled;
	}

	/* (non-Javadoc)
	 * @see com.ncr.travel.appmgr.model.FunctionControls#setIsSelectEnabled(java.lang.Boolean)
	 */
	@Override
	public void setIsSelectEnabled(Boolean isSelectEnabled) {
		this.isSelectEnabled = isSelectEnabled;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((isRadioEnabled == null) ? 0 : isRadioEnabled.hashCode());
		result = prime * result + ((isSelectEnabled == null) ? 0 : isSelectEnabled.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		FunctionControlsJson other = (FunctionControlsJson) obj;
		if (isRadioEnabled == null) {
			if (other.isRadioEnabled != null)
				return false;
		} else if (!isRadioEnabled.equals(other.isRadioEnabled))
			return false;
		if (isSelectEnabled == null) {
			if (other.isSelectEnabled != null)
				return false;
		} else if (!isSelectEnabled.equals(other.isSelectEnabled))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "FunctionControlsJson [isRadioEnabled=" + isRadioEnabled + ", isSelectEnabled=" + isSelectEnabled + "]";
	}

}
